/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package de.hsrm;

/**
 *
 * @author acme
 */
public class Car {
    
    private long macAddress = 0;    
    private int assignedAddress = 0;
    private int waitTime = 1;
    private boolean checked = true;
    
    public Car(long macAddress, int assignedAddress)
    {
        
        this.macAddress = macAddress;
        this.assignedAddress = assignedAddress;        
    }
    
    public void setWaitTime(int seconds)
    {
        waitTime = seconds;
    }
    
    public void incrementWaitTime()
    {
        waitTime++;
    }
    
    public int getWaitTime()
    {
        return waitTime;
    }
    
    public long getMacAddress()
    {
        return macAddress;
    }
    
    public long getAddress()
    {
        return assignedAddress;
    }
    
    public boolean isChecked()
    {
        return checked;
    }
    
    public void setChecked(boolean checked)
    {
        this.checked = checked;
    }
    
}
